﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="board1.aspx.cs" Inherits="MQC.board1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <style>
.gird{
    margin:auto;
    border:none;
}
.girdHead1{
    width:240px;
    height:70px;
    border-left:none;
    border-right:none;
    font-size:50px;
    font-family:"Arial";
}
.gird1{
    width:240px;
    height:110px;
    border-left:none;
    border-right:none;
    font-size:50px;
    font-family:"Arial";
}

.gird1-1{
    width:240px;
    height:80px;
    border-left:none;
    border-right:none;
    font-size:60px;
    font-family:"Arial";
}
.girdHead2{
    width:220px;
    height:70px;
    border-left:none;
    border-right:none;
    text-align:center;
    font-size:50px;
    font-family:"Arial";
}
.gird2{
    width:220px;
    height:70px;
    border-left:none;
    border-right:none;
    text-align:center;
    font-size:50px;
}
.gird2-2{
    width:220px;
    height:80px;
    border-left:none;
    border-right:none;
    text-align:center;
    font-size:30px;
    font-family:"Arial";
}
.gird3{
    width:310px;
    height:110px;
    border-left:none;
    border-right:none;
    font-size:50px;
}
.border1{
    border-left:solid 1px;
}
.tab-stacked1{
    padding-top: 10px;
    padding-left: 0px;
}
.red{
    background-color:#f45286;
}
.yellow{
    background-color:#f4bb52;
}
.green{
    background-color:#52f4bb;
}
.blue{
    background-color:#528bf4;
}
.hide{
    display:none;
}
.time-style{
    font-size:30px;
    text-align:left;
    font-family:Arial;
}
</style>
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="tab-stacked1">
    <asp:Timer ID="Timer" Interval="5000" runat="server"/>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
        <ContentTemplate>
            <div class="time-style">
                <%=Hour+":"+Minute %>
            </div>
            <asp:GridView ID="GridView1" CssClass="gird" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="5" >
                <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Machine" HeaderText="M/C" >
                    <HeaderStyle Wrap="False" CssClass="girdHead1"  HorizontalAlign="Left" />
                    <ItemStyle Wrap="False" CssClass="gird1-1" HorizontalAlign="Left"/>
                </asp:BoundField>
                <asp:BoundField HeaderText="产品编号" DataField="Maktx">
                    <HeaderStyle Wrap="False" CssClass="girdHead1"  HorizontalAlign="Left"/>
                    <ItemStyle Wrap="False" CssClass="gird1-1" />
                </asp:BoundField>
                <asp:BoundField HeaderText="MOLD.NO" DataField="Mold">
                    <HeaderStyle Wrap="False"  CssClass="girdHead1 border1" HorizontalAlign="Left"/>
                    <ItemStyle Wrap="False"  CssClass="gird1-1 border1"/>
                </asp:BoundField>
                <asp:BoundField HeaderText="WAIT" DataField="Wait">
                    <HeaderStyle Wrap="False"  CssClass="girdHead2 border1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird2-2 border1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField HeaderText="INSP." DataField="Start">
                    <HeaderStyle Wrap="False"  CssClass="girdHead2 border1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird2-2 border1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField HeaderText="RETURN" DataField="Back">
                    <HeaderStyle Wrap="False"  CssClass="girdHead2 border1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird2-2 border1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField HeaderText="PASS" DataField="Ok">
                    <HeaderStyle Wrap="False"  CssClass="girdHead2 border1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird2-2 border1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField DataField="AllowProduce" HeaderText="PERPARE">
                    <HeaderStyle Wrap="False"  CssClass="border1 girdHead2 " HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass=" border1 gird2 " HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField DataField="ChangeDate" HeaderText="最后更新时间">
                    <HeaderStyle Wrap="False" CssClass="girdHead1" />
                    <ItemStyle Wrap="False" CssClass="gird1-1"/>
                </asp:BoundField>
                <asp:BoundField DataField="FAWait" HeaderText="FA待检">
                    <HeaderStyle Wrap="False"  CssClass="girdHead1 border1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird1-1 border1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField DataField="FAStart" HeaderText="FA检验">
                    <HeaderStyle Wrap="False"  CssClass="girdHead1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird1-1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField DataField="FABack" HeaderText="FA不良">
                    <HeaderStyle Wrap="False" CssClass="girdHead1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird1-1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField DataField="FAOk" HeaderText="FA完成">
                    <HeaderStyle Wrap="False" CssClass="girdHead1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird1-1" HorizontalAlign="Center"/>
                </asp:BoundField>
                <asp:BoundField DataField="FAChangeDate" HeaderText="FA最后更新时间">
                    <HeaderStyle Wrap="False" CssClass="girdHead1" HorizontalAlign="Center"/>
                    <ItemStyle Wrap="False" CssClass="gird1-1" HorizontalAlign="Center"/>
                </asp:BoundField>
            </Columns>
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center"  CssClass="hide"/>
            </asp:GridView>
            <%--<audio id="Sound1" class="hide" src="../alertsound.mp3" runat="server"></audio>--%>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Timer" EventName="Tick" />
        </Triggers>              
    </asp:UpdatePanel>
     
    </div>  
    </div>
    </form>
</body>
</html>
